package com.vcredit.creditcat.service;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import com.vcredit.creditcat.model.AppVersion;
import com.vcredit.creditcat.persistence.base.AppVersionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 全局开关配置中心管理服务类
 *
 * @Author:wichell
 */
@Service
@DisconfFile(filename = "switch.properties")
public class AppSwitchService {

	private String appAndroidSwitch;
	private String appIOSSwitch;

	@DisconfFileItem(name = "switch_android",associateField = "appAndroidSwitch")
	public String getAppAndroidSwitch() {
		return appAndroidSwitch;
	}

	public void setAppAndroidSwitch(String appAndroidSwitch) {
		this.appAndroidSwitch = appAndroidSwitch;
	}

	@DisconfFileItem(name = "switch_ios",associateField = "appIOSSwitch")
	public String getAppIOSSwitch() {
		return appIOSSwitch;
	}

	public void setAppIOSSwitch(String appIOSSwitch) {
		this.appIOSSwitch = appIOSSwitch;
	}
}